package org.wlc.demov3.impl;

import org.wlc.demov1.service.OrderService;
import org.wlc.demov3.adapter.OrderAdapterService;

/**
 * @author 王立朝
 * @date 2022/5/19
 * @description: 接口适配器
 */
public class InsideOrderService implements OrderAdapterService {

    private OrderService orderService = new OrderService();

    /**
     * 是否首单
     *
     * @param uId
     * @return
     */
    @Override
    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId) <= 1;
    }
}
